package com.boot2.core.web;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zhangweilin
 * @Description: xxxxx
 * @date 2020/12/15
 */
public interface TokenSessionContext {

    <T> T put(@NotBlank String token, @NotBlank String key, @NotNull T t);

    <T> T get(@NotBlank String token, @NotBlank String key);

    void remove(@NotBlank String token, @NotBlank String key);

    Object put(String key, Object obj);

    <T> T get(@NotBlank String key);

    String getName(String key);

    void remove(@NotBlank String key);

}
